package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    PageResult queryPage(QueryPageBean queryPageBean);

    void addPermission(Permission permission);

    void editPermission(Permission permission);

    Result delete(Integer id);

    List<Integer> findByRoleid(Integer id);

    List<Permission> findAll();

    Permission findPermissionById(Integer id);
}
